global gCurrentGame, gCurrentQuestion, gGameQuestionList, gWhatToFindList, gGameStatusList, scSearchItem, clue1, questionNum
repeat with I = 6 to 15
set the puppet of sprite I to 1
end repeat
set gCurrentQuestion = 1
if gCurrentGame <> "scavenger" then
getRandomItems
set the member of sprite 6 to member "white Background"
set the loc of sprite 6 to point(345,242)
set the member of sprite 7 to member "stitle"
set the loc of sprite 7 to point(340,79)
set the member of sprite 8 to member getAt(gameItemsList,1) of castLib"data4"
set the loc of sprite 8 to point(167,196)
set the member of sprite 9 to member 100 of castLib"data4"
set the loc of sprite 9 to point(167,196)
set the ink of sprite 9 to 36
set the member of sprite 10 to member "searchTitle2"
set the loc of sprite 10 to point(266,123)
set the member of sprite 11 to member "clue1Text"
set the loc of sprite 11 to point(266,151)
set the member of sprite 12 to member "leftArrow1"
set the loc of sprite 12 to point(280,257)
set the member of sprite 13 to member "rightArrow1"
set the loc of sprite 13 to point(510,257)
set the member of sprite 14 to member "searchButton"
set the loc of sprite 14 to point(387,257)
set the member of sprite 15 to member "infoText"
set the loc of sprite 15 to point(104,329)
set questionNum = char 1 to 2 of the name of member getAt(gameItemsList,1) of castLib "data4"
searchScavenger
getRecScavenger
set the text of Member "searchtitle2" to scSearchItem
set the text of Member "clue1Text" to clue1
updateStage
end if
end gameSetUp
on getRandomItems
global gameItemsList, gameNamesList
global gCurrentGame, gCurrentQuestion, gGameQuestionList, gWhatToFindList, gGameStatusList
set gameitemsList = [0,0,0,0,0,0]
put 1 into I
repeat while I < 7
put random(71) into temp
if temp <> getAt(gameitemsList,1) and temp <> getAt(gameitemsList,2) and temp <> getAt(gameitemsList,3) and temp <> getAt(gameitemsList,4) and temp <> getAt(gameitemsList,5) and temp <> getAt(gameitemsList,6) then
setAt(gameitemsList,I,temp)
put I+1 into I
end if
end repeat
end getRandomItems
on playTheGame
if the memberNum of sprite 12 <> 106 then
set the member of sprite 12 to member "leftArrow1"
set the loc of sprite 12 to point(280,257)
end if
if the memberNum of sprite 13 <> 108 then
set the member of sprite 13 to member "rightArrow1"